﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DBUtility.Core
{
    public static class DbExtension
    {
        /// <summary>
        /// 扩展DbHelper功能
        /// </summary>
        /// <param name="dbHelper"></param>
        /// <param name="action"></param>
        /// <returns></returns>
        public static DbHelper Use(this DbHelper dbHelper,Action<DbHelper> action)
        {
            action(dbHelper);
            return dbHelper;
        }
    }
}
